import request from '@/utils/request'

// 采购
export function purchaseOrder(ids, data) {
  return request({
    url: '/shopee/order/pack/purchase/' + ids,
    method: 'post',
    params: data
  })
}

// 提交订单
export function submitOrder(ids) {
  return request({
    url: '/shopee/order/pack/submit/' + ids,
    method: 'post',
  })
}

// 完结订单
export function finishOrder(ids) {
  return request({
    url: '/shopee/order/pack/finish/' + ids,
    method: 'post',
  })
}

// 回退订单
export function backOrder(ids) {
  return request({
    url: '/shopee/order/pack/back/' + ids,
    method: 'post',
  })
}

// 批量缺货订单
export function outsOrder(ids) {
  return request({
    url: '/shopee/order/pack/outs/' + ids,
    method: 'post',
  })
}

// 订单缺货
export function outOrder(data) {
  return request({
    url: '/shopee/order/pack/out',
    method: 'post',
    data: data
  })
}

// 订单加急
export function emergencyOrder(data) {
  return request({
    url: '/shopee/order/pack/emergency',
    method: 'post',
    data: data
  })
}

// 订单备注
export function remarkOrder(data) {
  return request({
    url: '/shopee/order/pack/remark',
    method: 'post',
    data: data
  })
}

// 订单拉黑
export function blackOrder(data) {
  return request({
    url: '/shopee/order/pack/black',
    method: 'post',
    data: data
  })
}



